import http from "@/utils/request";



export function info(params) {
  return http.request({
    url: "/user/info",
    method: "get",
    params,
  });
}

export function login(data) {
  return http.request({
    url: "/admin/login/",
    method: "post",
    data,
  });
}

export function logout() {
  return http.request({
    url: "/admin/logout/",
    method: "post",
  });
}
export function findPwd(data) {
  return http.request({
    url: "/admin/find_pwd/",
    method: "post",
    data
  });
}
export function sendPhoneCode(data) {
  return http.request({
    url: "/admin/phoneCode/",
    method: "post",
    data
  });
}
export function getOpenId(data) {
  return http.request({
    url: "/wxpay/get_openid/",
    method: "post",
    data
  });
}
export function toPayment(data) {
  return http.request({
    url: "/wxpay/jsapi_pay/",
    method: "post",
    data
  });
}
export function setSchoolInfo(data) {
  return http.request({
    url: "/wxpay/school_add/",
    method: "post",
    data
  });
}
export function getJsSdkString(data) {
  return http.request({
    url: "/wxpay/js_sdk/",
    method: "post",
    data
  });
}
export function getSchoolState(data) {
  return http.request({
    url: "/wxpay/school_state/",
    method: "post",
    data
  });
}
export function sedPhoneCode(data) {
  return http.request({
    url: "/admin/phoneCode/",
    method: "post",
    data
  });
}
export function getServeInfo(data) {
  return http.request({
    url: "/admin/serve_info/",
    method: "post",
    data
  });
}
